package com.heima.model.wemedia.dtos;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class WmNewsDto {

    private Integer id;
    private String title;//标题
    private Integer channelId;//频道id
    private String labels;//标签
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publishTime;//发布时间
    private String content;//文章内容
    private Short type;//封面类型  0无图 1单图 -1自动
    private Short status;//0为存入草稿  1为提交审核
    private List<String> images;//封面图片列表 多张图以逗号隔开
}